<?php

$orig=$_REQUEST['orig'];
$nname=$_REQUEST['nname'];

if(rename($orig,$nname)){
    echo "Rename Successfull.";
}
else{
       echo "Rename Failed.";
}